<template>
  <div>
    <div class="nav">
      <div class="nav-left">
        <img src="../assets/images/logo.png" alt="">
      </div>
      <div class="nav-search">
        <input type="text" name="" id="" placeholder="搜索">
      </div>
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {

}
</script>

<style lang="less" scoped>
.nav{
  height: 1rem;
  background-color: #7ACF9B;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  .nav-left{
    position: relative;
    flex:1;
    height: 1rem;
    img{
      width: 0.6rem;
      height: 0.6rem;
      position: relative;
      top: 0.2rem;
      left:0.2rem;
    }
  }
  .nav-search{
    flex:8;
    position: relative;
    height: 1rem;
    input{
      position: relative;
      left:0.2rem;
      top: 0.2rem;
      width: 5rem;
      height: 0.6rem;
      border-radius: 0.15rem;
      outline:none;  
	    border:none;
    }
  }
}



</style>